package me.firstapp.common.module.shop;

import me.firstapp.common.module.base.JsonBase;

public class JsonOrderItemInManage extends JsonBase {

	private static final long serialVersionUID = 3028410208926826548L;

	// 订单id
	private String orderId;

	// 关联的商品
	private Long productId;

	private String productName;

	private String smallImage;

	private Double price;

	// 关联的sku
	private String skuValue;

	// 商品数量
	private Integer counts;

	// 商品总价
	private Double value;
	
	// 评价状态，0未评价，1已评价
	private Integer commentStatus;

	public JsonOrderItemInManage(JsonOrderItem item) {
		this.id = item.getId();
		this.orderId = item.getOrderId();
		this.productId = item.getProduct().getId();
		this.productName = item.getProduct().getName();
		this.smallImage = item.getProduct().getSmallImage();
		this.price = item.getProduct().getPrice();
		this.skuValue = item.getProductSkuRelation().getSkuValue1() + item.getProductSkuRelation().getSkuValue2();
		this.counts = item.getCounts();
		this.value = item.getValue();
		this.commentStatus = item.getCommentStatus();
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getCounts() {
		return counts;
	}

	public void setCounts(Integer counts) {
		this.counts = counts;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public String getOrderId() {
		return orderId;
	}

	public Integer getCommentStatus() {
		return commentStatus;
	}

	public void setCommentStatus(Integer commentStatus) {
		this.commentStatus = commentStatus;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getSkuValue() {
		return skuValue;
	}

	public void setSkuValue(String skuValue) {
		this.skuValue = skuValue;
	}

	public String getSmallImage() {
		return smallImage;
	}

	public void setSmallImage(String smallImage) {
		this.smallImage = smallImage;
	}

}
